package com.feituan.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.feituan.core.pojo.vo.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaohu
 * @since 2024-05-09
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Product extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("商品描述")
    private String description;
    @ApiModelProperty("商品图片")
    private String imageUrl;
    @ApiModelProperty("商品标签")
    private String label;
    @ApiModelProperty("商品说明")
    private String statement;
    @ApiModelProperty("商品价格")
    private BigDecimal price;
    @ApiModelProperty("规格，多个规格用逗号分隔")
    private String models;
    @ApiModelProperty("详情图片")
    private String images;
    @ApiModelProperty("单位")
    private String unit;
    @TableField(exist = false)
    private String qty;
    @TableField(exist = false)
    private List<Model> modelVos;

}
